<template>
    <div>
        <router-view />
        <div class="tabber">
            <span @click="toindex">首页</span>
            <span @click="tobbtuan">爆爆团</span>
            <span @click="toorder">订单</span>
            <span @click="tomine">我的</span>
        </div>
    </div>
</template>
<script setup>
//导入
import { useRouter } from 'vue-router'
//获取路由管理对象
var $router = useRouter()
var toindex = () => {
    $router.push('/index/home')
}
var tobbtuan = () => {
    $router.push('/index/bbtuan')
}
var toorder = () => {
    $router.push('/index/order')
}
var tomine = () => {
    $router.push('/index/mine')
}
</script>
<style scoped>
.tabber {
    height: 40px;
    width: 100%;
    background-color: rgb(228, 250, 250);
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    line-height: 40px;
    /* padding: 0 15px; */
}
</style>